home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d2
/
pcwiz01.arc
/
REPLACE.INS
< prev
next >
Wrap
Text File
|
1991-08-22
|
2KB
|
81 lines
REPLACE Reads the names of all files in the TARGET
directory and compares them with names of
the files in the SOURCE. Will only update
(REPLACE) those files that MATCH. (The /A
switch allows for ADDing new files.)
Format: REPLACE [D:Path]SourceFile [Dest D:\Path]
[/A][/P][/R][/S][/W]
/A ADDS files from the SOURCE location that do not
have MATCHING filenames on the TARGET.
/P PROMPTs the user for a response of [Y] prior to
completing the requested REPLACE operation.
/R allows files that are marked as READ-ONLY on the
TARGET directory to be REPLACED.
/S searches through all SUBDIRECTORIES on TARGET
for files that match the REPLACE criteria and
then performs the requested REPLACE action(s).
/W WAITS for the user to place a new diskette in
the TARGET drive before executing the command.
Example: REPLACE \123\*.* A:
REPLACEs ALL files on the diskette in drive A that
have filenames that MATCH those that are contained
in the \123 directory of the CURRENT drive.
Example: REPLACE \123\*.WK1 A: /R
REPLACEs all files with a .WK1 extension on the
diskette in drive A: that MATCH the filenames
contained in the \123 directory on CURRENT drive.
The /R switch ensures that matching READ-ONLY
files are also REPLACEd on A:.
Example: REPLACE \123\*.WK1 A: /R /W
Same as above, except the system will display a
PROMPT that causes the system to WAIT until you
ensure that drive A: contains proper diskette.
Example: REPLACE A:*.TXT C:\WP\DATA1 /R /S /W
REPLACEs all *.TXT files in the C:\WP\DATA1
directory (AND the *.TXT files in any of it's
lower subdirectories) that MATCH the names of
the *.TXT files contained on the diskette in
drive A.
Example: REPLACE \123\*.WK1 A: /A
ADDs ALL files with extension of .WK1 contained
in the \123 directory of the CURRENT drive that
do NOT already exist on the diskette in drive A.
(e.g., MATCHING files not found.) Existing files
are NOT updated/replaced.)
[*] Do NOT use the /A and /S switches together.
[*] Be cautious when using the /S switch because
it will also REPLACE all files on the TARGET,
including those in ALL lower subdirectories,
that match the files on the source.